import {
	defineStore
} from "pinia";
import {
	gisLogout
} from "@/api/login";
export const useUserStore = defineStore("user", {
	actions: {
		logout() {
			return gisLogout();
		},
		goOutClearStorage() {
			const login = window.localStorage.getItem("login");
			window.localStorage.clear();
			if (login) window.localStorage.setItem("login", login);
			window.location.reload();
		},
	},
});